<%if $surnames|@count gt 0%>
<%foreach name=surnames from=$surnames item=num key=surname%>
<div class="left surname">
  <a href="/surnames/show?surname=<%$surnames_ids.$surname%>"><%$surname%>氏家谱</a><%$num%>
</div>
<%if $smarty.foreach.surnames.index && !(($smarty.foreach.surnames.index+1)%$SURNAMES_PER_LINE)%>
<%/if%>
<%/foreach%>
<%/if%>

<div class="clear">
</div>
